{% extends "admin/base.html" %}

{% block content_block %}
	{{ block.super }}
	{% block items_manage_block %}
		{% if manage_can_add %}
			<div id="items-manage" class="admin-block">
				{% if manage_can_add %}
					<a class="ui-button" href="add/">Add</a>
				{% endif %}
			</div>
		{% endif %}
	{% endblock %}
	{% block list_items_block %}
		<div id="list-items" class="admin-block">
			<table>
				<tbody>
					{% for item in list_items %}
						<tr class="{% cycle "row1" "row2" %}">
							<td><a href="{{ item.url }}">{{ item.name }}</a></td>
							{% for col in item.columns %}
								{% if col.url %}
									<td><a href="{{ col.url }}">{{ col.name }}</a></td>
								{% else %}
									<td>{{ col.name }}</td>
								{% endif %}
							{% endfor %}
						</tr>
					{% endfor %}
				</tbody>
			</table>
		</div>
	{% endblock %}
{% endblock %}